<template>
  <div class="model-body">
    <!-- <div class="title">参与实验室间的统计再现性与推荐试验方法的</div> -->
    <div class="table">
      <vxe-table border show-footer show-header-overflow show-footer-overflow ref="tableRef"
          :scroll-x="{ enabled: true, gt: 0 }" height="auto" align="center"  :print-config="{}"
          :column-config="{ resizable: true }" 
        :data="datas">
          <vxe-column field="ResultName" title="试验项目" width="80"></vxe-column>
          <vxe-column field="ResultUnit" title="单位" width="80"></vxe-column>
          <vxe-column field="MedianValue" title="中位值" width="80"></vxe-column>
          <vxe-column field="LabReproducibility" title="参与实验室间的统计再现性" width="80"></vxe-column>
          <vxe-column field="MethodReproducibility" title="推荐试验方法的规定再现性" width="80"></vxe-column>
        </vxe-table>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { defineProps, reactive, onMounted, onUnmounted } from "vue";

defineProps({
  datas: {
    type: Array,
    required: true
  }
})
const timeInfo = reactive({
  setInterval: 0,
  dateDay: "",
  dateYear: "",
  dateWeek: "",
})
// 生命周期
onMounted(() => {
})
onUnmounted(() => {
  clearInterval(timeInfo.setInterval)
})
</script>

<style lang="scss" scoped>
.model-body {
  width: 100%;

  .title {
    width: 100%;
    padding: 10px;
    text-align: center;
    font-size: 26px;
    color: #ffffff;
    // margin-bottom: 10px;
  }
  .table{
    height: 82vh;
    overflow-y: auto;
    position: relative;
    font-size: 0.75rem;
  }

  table {
    border-color: #ffffff;

    th {
      padding: 6px;
    }

    td {
      padding: 6px;
    }
  }
}
::v-deep(.vxe-header--column) {
  background: #0873AA;
  color: #ffffff;
}

::v-deep(.vxe-body--column) {
  background: #32A4F1;
  color: #ffffff;
}

::v-deep(.vxe-footer--column) {
  background: #0873AA;
  color: #ffffff;
}
</style>
